package org.lee.controller;

import org.lee.bean.School;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lizhe
 */
@RestController
public class TestController {

    @Autowired
    private School school;

    @GetMapping("/test")
    public String test() {
        school.ding();
        school.getStudent100().print();
        return school.toString();
    }
}
